home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / bchelp10.zip / TI815.ASC < prev    next >
Text File  |  1991-09-11  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Turbo C++, Borland C++                 NUMBER  :  815
  9.   VERSION  :  All
  10.        OS  :  PC DOS
  11.      DATE  :  September 11, 1991                       PAGE  :  1/1
  12.  
  13.     TITLE  :  fstream vs. FILE * vs. DOS handles
  14.  
  15.  
  16.  
  17.  
  18.   The following provides, in tabular format, the equivalent
  19.   functions between FILE pointers, C++ file Streams and DOS file
  20.   handles.  fstreams consist of fstreams, ifstreams and ofstreams.
  21.   FILE pointers are obtained from fopen, freopen, fdopen and other
  22.   functions.  DOS handles are obtained from open, _open, create and
  23.   others
  24.  
  25.   FILE *          FSTREAM             HANDLE
  26.   ================================================
  27.   fopen          fp.open or           open
  28.                  constructor
  29.   fseek          fp.seekp             lseek
  30.   ftell          fp.tellp             tell
  31.   feof           fp.eof               eof
  32.   fread          fp.read              read
  33.   fwrite         fp.write             write
  34.   fileno         (fp.rdbuf())->fd()   <NA>
  35.   use fileno     use fstrno           chsize
  36.   fstrno
  37.   fcloseall                           <NA>
  38.   fdopen         fp.attach            <NA>
  39.   ferror
  40.   fflush         fp.sync              <NA>
  41.   fgetc          fp.get               use read
  42.   fgetpos        use tellp            use tell
  43.   fsetpos        use seekp            use lseek
  44.   fgets          fp.get               use read
  45.   use fileno     use fstrno           filelength
  46.   flushall                            <NA>
  47.   fprintf        iomanip              <NA>
  48.   fputc          operator <<          use write
  49.   fputs          operator <<          use write
  50.   freopen                             <NA>
  51.   fscanf         operator >>          <NA>
  52.                  with iomanip
  53.   use fileno     use fstrno           fstat
  54.   use fileno     use fstrno           getftime
  55.   use fileno     use fstrno           setftime
  56.   use fileno     use fstrno           lock
  57.   use filno      use fstrno           setmode
  58.   setvbuf                             <NA>
  59.   use fdopen     use attach           sopen
  60.   use fileno     use fstrno           unlock
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Turbo C++, Borland C++                 NUMBER  :  815
  75.   VERSION  :  All
  76.        OS  :  PC DOS
  77.      DATE  :  September 11, 1991                       PAGE  :  2/1
  78.  
  79.     TITLE  :  fstream vs. FILE * vs. DOS handles
  80.  
  81.  
  82.  
  83.  
  84.   Stream equivalent of file number:
  85.       #define fstrno(fp) (((fp).rdbuf())->fd())
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.